#ifndef MYH_HPP
#define MYH_HPP
#include <random>
#include "config.hpp"
#include "RBTree.hpp"
#include "msort.hpp"
#include "fix.hpp"
namespace myh{
    template<class T>
    std::vector<T> generateRandomData(int size,int min,int max) {
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<int> dis(min,max);
        std::vector<T> data(size);
        for (int i=0;i<size;i++) data[i]=dis(gen);
        return data;
    }
    template<class T>
    std::vector<T> generateRandomData(int size,int max) {
        std::random_device rd;
        std::mt19937 gen(rd());
        std::uniform_int_distribution<T> dis(0,max);
        std::vector<T> data(size);
        for (int i=0;i<size;i++) data[i]=dis(gen);
        return data;
    }
}
#endif